package model

import (
	"time"
)

type AuDealerRefund struct {
	Id            int       `xorm:"not null pk autoincr INT(10)"`
	DealerId      int       `xorm:"not null INT(10)"`
	IssueId       int       `xorm:"not null INT(10)"`
	OrderId       int       `xorm:"not null INT(10)"`
	CarId         int       `xorm:"not null INT(10)"`
	RefundAmount  float32   `xorm:"not null default 0.00 FLOAT(10,2)"`
	ConsultAmount float32   `xorm:"not null default 0.00 FLOAT(10,2)"`
	EmpId         int       `xorm:"not null INT(10)"`
	RefundType    int       `xorm:"not null default 0 TINYINT(2)"`
	RefundTime    time.Time `xorm:"not null DATETIME"`
	Remark        string    `xorm:"VARCHAR(255)"`
	Status        int       `xorm:"not null default 1 TINYINT(2)"`
	Createtime    time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' TIMESTAMP"`
}
